
const { query } = require('../db/search_mysql')

class SensitiveWord {
  constructor () {
    this.tableName = 'sensitive_words'
  }

  getByKid (kid) {
    const sql = `SELECT id FROM ${this.tableName} 
                WHERE kid = ?
                limit 1;`
    return query(sql, [kid])
  }
}

module.exports = new SensitiveWord()
